
  $(".income_expense_footer ul li p:first-child span:last-child").each(function(){
  	var num = $(this).text();
   if(num.indexOf("+") >= 0){
   	$(this).css("color","#8ec31e");
   }else if(num.indexOf("-") >= 0){
   		$(this).css("color","#f89a2c");
   }
  });

$(".type").bind("click",function(){
	$(this).css('border-bottom', '0.133333rem solid #a062e0');
	$(this).siblings().css("border-bottom", "none");
			var type = $(this).index();
			$.ajax({
				type: "post",
				url: "",
				data: {
					type: type
				},
				datatype: "json",
				success: function(data) {
					var data = JSON.parse(data);
				}
			});
		});

